import request from "@/utils/request";

const login = async (data) => {
    return request({
        method: "POST",
        url: "/login/login",
        data
    })
}

const sendMail = async (email) => {
    return request({
        method: "POST",
        url: "/login/sendMail",
        timeout:0,
        params: {
            email
        }
    })
}

const getNoteSelf = async () => {
    return request({
        method: "GET",
        url: "/box/get/self",
    })
}

export {
    login,
    sendMail,
    getNoteSelf
}
